<template>
  <div>
    <h1>News的子组件</h1>
    name:{{ name }} price:{{ price }}
  </div>
</template>

<script>
  export default {
    name: "Item",
    data() {
      return {
        name: "",
        price: "",
      };
    },
    mounted() {
      // console.log("News Mounted");
      const { name, price } = this.$route.params;
      this.name = name;
      this.price = price;
    },
  };
</script>

<style></style>
